<template>
	 <div class="module-item-twtit" :style="titStyle">
		<moduleText :text="title" />
	 </div>	
</template>

<script>
	import moduleText from '@/views/module/text.vue'
	export default{
		name:'moduleTwtit',
		props:['title'],
		components:{ moduleText },		
		computed: {
			titStyle(){

				if (this.$parent.module.title.ta && this.$parent.module.title.ta != '') {
					return `text-align:${this.$parent.module.title.ta}`;
				}
			}		
		},
		created(){
			//console.log(this.$parent)
		}	
	}
</script>
